package org.haoran;

import java.io.IOException;
import java.util.Date;
import java.util.concurrent.TimeUnit;

import javax.xml.crypto.Data;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class KimApplication {
	public static void main(String[] args) {
		SpringApplication.run(KimApplication.class, args);
		
		while(true) {
			try {
				TimeUnit.SECONDS.sleep(1);
				MyWebSocket.sendInfo("服务器推送: xx" + new Date().toString());
			} catch (IOException e) {
				e.printStackTrace();
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}
}
